<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<%-- 权限判断 --%>
<shield:permssion type="button">
<form action="${ctxPathA}/system/codegen/dbset/addOrUpdate" method="post" class="show-info" id="updateCodegenDbsetForm">
	<shield:token/>
    <input id="id" name="id" type="hidden" maxlength="100" value="${model.id }">
    <table class="tab-show">
    	<col width="120">
    	<col width="">
    	<col width="100">
        <tr>
	    	<th>
            	<label><font color="red">*</font>设置名称：</label>
        	</th>
         	<td colspan="3"><input type="text" name="dbSetName" value="${model.dbSetName}"></td>
		</tr>
        <tr>
	    	<th>
            	<label><font color="red">*</font>数据库url：</label>
        	</th>
         	<td colspan="3"><input type="text" class="testparams" name="dbUrl" value="${model.dbUrl}"></td>
		</tr>
        <tr>
	    	<th>
            	<label><font color="red">*</font>数据库用户名：</label>
        	</th>
         	<td><input type="text" class="testparams" name="dbUserName" value="${model.dbUserName}"></td>
	    	<th>
            	<label><font color="red">*</font>数据库密码：</label>
        	</th>
         	<td><input type="password" class="testparams" name="dbPassword" value="${model.dbPassword}"></td>
		</tr>
    </table>
    <div class="taCenter">
    	<input class="button" type="submit" value="提交"/>
    	<input class="button default" type="reset" value="重置"/>
    	<!-- href改为data-url successDo="shieldDonothing"表示成功后什么都不做，默认会关闭窗口刷新页面-->
    	<input class="button shieldAjax" data-url="${ctxPathA }/system/codegen/dbset/testconn" paramSelector="#updateCodegenDbsetForm .testparams:input" type="button" successDo="shieldDonothing" value="测试连接"/>
    </div>
</form>
</shield:permssion>